import React, { Component } from 'react'
import RouterLink from "../router/RouterLink"
import RouterView from '../router/RouterView'

export class Home extends Component {
  render() {
    const {routerConfig}=this.props
    return (
      <div className='app'>
        <div className='header'>一级路由</div>
        <div className="body">
        <div className="left"><RouterLink ></RouterLink></div>
        <div className="right"><RouterView routerConfig={routerConfig}></RouterView></div>
        </div>

      </div>
    )
  }
}

export default Home